using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AudioManager : MonoBehaviour
{
    public static AudioManager Instance { get; private set; }

    public AudioClip[] pigCollisons;


    private void Awake()
    {
        Instance = this;
    }

    public void PlaPigCollison(Vector3 position)
    {
        int index = Random.Range(0, pigCollisons.Length);
        AudioSource.PlayClipAtPoint(pigCollisons[index], position, 1f);
    }

}
